<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Page Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
    <div>b：<span id="main"></span></div>
    <script>
        window.onmessage=function(e){
            document.querySelector('#main').textContent=e.data;
            console.log(e.data);
            e.source.postMessage('我不爱你',e.origin)
        }
    </script>
</body>
</html>